An efficient rounding boundary test for pow(x,y) in double precision

نویسندگان

  • Christoph Quirin Lauter
  • Vincent Lefèvre
چکیده

The correct rounding of the function pow : (x, y) 7→ x is currently based on Ziv’s iterative approximation process. In order to ensure its termination, cases when x falls on a rounding boundary must be filtered out. Such rounding boundaries are floating-point numbers and midpoints between two consecutive floating-point numbers. Detecting rounding boundaries for pow is a difficult problem. Previous approaches use repeated square root extraction followed by repeated square and multiply. This article presents a new rounding boundary test for pow in double precision which resumes to a few comparisons with pre-computed constants. These constants are deduced from worst cases for the Table Maker’s Dilemma, searched over a small subset of the input domain. This is a novel use of such worst-case bounds. The resulting algorithm has been designed for a fast-on-average correctly rounded implementation of pow, considering the scarcity of rounding boundary cases. It does not stall average computations for rounding boundary detection. The article includes its correction proof and experimental results.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Inverse Sturm-Liouville problems with transmission and spectral parameter boundary conditions

This paper deals with the boundary value problem involving the differential equation ell y:=-y''+qy=lambda y, subject to the eigenparameter dependent boundary conditions along with the following discontinuity conditions y(d+0)=a y(d-0), y'(d+0)=ay'(d-0)+b y(d-0). In this problem q(x), d, a , b are real, qin L^2(0,pi), din(0,pi) and lambda is a parameter independent of x. By defining a new...

متن کامل

Worst Cases for Correct Rounding of the Elementary Functions in Double Precision

We give the results of our search for the worst cases for correct rounding of themajor elementary functions in double precision floating-point arithmetic. These results allow the design of reasonably fast routines that will compute these functions with correct rounding, at least in some interval, for any of the four rounding modes specified by the IEEE-754 standard. They will also allow one to ...

متن کامل

An Efficient Method for Determining Capillary Pressure and Relative Permeability Curves from Spontaneous Imbibition Data

In this paper, a very efficient method, called single matrix block analyzer (SMBA), has been developed to determine relative permeability and capillary pressure curves from spontaneous imbibition (SI) data. SMBA mimics realistically the SI tests by appropriate boundary conditions modeling. In the proposed method, a cuboid with an identical core plug height is considered. The equal dimensions of...

متن کامل

TR-2007010: Error-Free Computations via Floating-Point Operations

Division-free arithmetic computations can be boiled down to summation due to Dekker/Veltkamp’s algorithm of 1971. The known double-precision numerical algorithms for summation are highly effective but limited by rounding errors. Our new summation algorithms relaxe this limitation, although they still almost entirely amount to double-precision additions. The efficiency of the algorithms is confi...

متن کامل

Integer Bayesian Networks

This paper introduces integer Bayesian networks (BNs), i.e. BNs with discrete valued nodes where parameters are stored as integer numbers. These networks allow for efficient implementation in hardware while maintaining a (partial) probabilistic interpretation under scaling. An algorithm for the computation of margin maximizing integer parameters is presented and its efficiency is demonstrated. ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007